From: Keir Fraser Date: Thu, 14 Jan 2010 10:14:17 +0000 (+0000) Subject: xend: Fix wait-for-stubdom loop to avoid possible infinite loop X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12737 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=fb95b70c12935db9f604e931282a4040fb0b393e;p=xen.git xend: Fix wait-for-stubdom loop to avoid possible infinite loop Signed-off-by: Keir Fraser --- diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index db6e6658f6..778c0687e6 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -487,8 +487,8 @@ class ImageHandler: time.sleep(0.1) count += 1 - if count < 100: - continue + if count > 100: + break domains.domains_lock.acquire()